package com.dreamsail.core.frame;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
// 添加spring扫描空间
@ComponentScan(basePackages = "com.dreamsail.core")
@MapperScan("com.dreamsail.core.dao")
public class BaseServiceConfig {

    @Bean("base")
    @ConfigurationProperties(
            prefix = "base"
    )
    public ServiceConfig baseServiceConfig(){
        return new ServiceConfig();
    }
}
